{capture name="hidden"}	
		<input name="body" type="hidden" value="{$smarty.session.body}">
		<input name="admin" type="hidden" value="1">
		<input name="new_lang" type="hidden" value="{if $smarty.get.new_lang}{$smarty.get.new_lang}{else}{$smarty.session.lang}{/if}">
		<input name="mod" type="hidden" value="admins">
		<input name="act" type="hidden" value="save_{if $smarty.get.type}{$smarty.get.type|lower}{else}page{/if}_permis">
		<input name="login_id" type="hidden" value="{$smarty.get.id}">
		<input name="referer" type="hidden" value="{ext->get_referer}">
{/capture}
{capture name="fields"}
	<table cellpadding="0" cellspacing="0">
		<tr>
			<td width="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
			<td width="80">{t t='Pasirinkite sritį'}:</td>
			<td width="15"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
			<td width="15">
			<select name="type" style="width:325px" onChange="window.location='index.php?admin=1&popup=16&id={$smarty.get.id}&parent={$data.page.id}&type='+this.value">
			  <option value="page" {if $smarty.get.type|lower==page|lower}selected{/if}>{t t='Puslapių teisės'}</option>
			  <option value="site" {if $smarty.get.type|lower==site|lower}selected{/if}>{t t='Modulių teisės'}</option>
			{ext->class_function class="shop" assign="is_shop"}
			{if $is_shop == 1}
		  	  <option value="shop" {if $smarty.get.type|lower==shop|lower}selected{/if}>{t t='Parduotuvės teisės'}</option>
			{/if}
			{ext->class_function class="realstate" assign="is_realstate"}
			{if $is_realstate == 1}
		  	  <option value="realstate" {if $smarty.get.type|lower==realstate|lower}selected{/if}>{t t='N. turto teisės'}</option>
			{/if}
			{ext->class_function class="docum" assign="is_docum"}
			{if $is_docum == 1}
		  	  <option value="docum" {if $smarty.get.type|lower==docum|lower}selected{/if}>{t t='Dokumentų valdymo teisės'}</option>
			{/if}
			{ext->class_function class="contacts" assign="is_contacts"}
			{if $is_contacts == 1}
		  	  <option value="contacts" {if $smarty.get.type|lower==contacts|lower}selected{/if}>{t t='Kontaktų valdymo teisės'}</option>
			{/if}
			</select>		
			</td>
			<td width="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		</tr>
	</table>
	{if $smarty.get.type|lower=="shop"}
		{include file="admin/popups/admin_permission/shop_permissions.html"}
	{elseif $smarty.get.type|lower=="docum"}	
		{include file="admin/popups/admin_permission/docum_permissions.html"}
	{elseif $smarty.get.type|lower=="contacts"}	
		{include file="admin/popups/admin_permission/contacts_permissions.html"}
	{elseif $smarty.get.type|lower=="realstate"}
		{include file="admin/popups/admin_permission/realstate_permissions.html"}
	{elseif $smarty.get.type|lower=="site"}	
		{include file="admin/popups/admin_permission/site_permissions.html"}
	{else}
		{include file="admin/popups/admin_permission/tree_permissions.html"}
	{/if}
{/capture}


